package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.DemandOrderFollowerMapper;
import com.ruoyi.yipaiju.domain.DemandOrderFollower;
import com.ruoyi.yipaiju.service.IDemandOrderFollowerService;

/**
 * fo_demand_order_followerService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class DemandOrderFollowerServiceImpl implements IDemandOrderFollowerService 
{
    @Autowired
    private DemandOrderFollowerMapper demandOrderFollowerMapper;

    /**
     * 查询fo_demand_order_follower
     * 
     * @param id fo_demand_order_follower主键
     * @return fo_demand_order_follower
     */
    @Override
    public DemandOrderFollower selectDemandOrderFollowerById(Long id)
    {
        return demandOrderFollowerMapper.selectDemandOrderFollowerById(id);
    }

    /**
     * 查询fo_demand_order_follower列表
     * 
     * @param demandOrderFollower fo_demand_order_follower
     * @return fo_demand_order_follower
     */
    @Override
    public List<DemandOrderFollower> selectDemandOrderFollowerList(DemandOrderFollower demandOrderFollower)
    {
        return demandOrderFollowerMapper.selectDemandOrderFollowerList(demandOrderFollower);
    }

    /**
     * 根据业务主键查询一条记录：fo_demand_order_follower
     *
     * @param demandOrderFollower fo_demand_order_follower
     * @return fo_demand_order_follower
     */
    @Override
    public DemandOrderFollower selectOneDemandOrderFollower(DemandOrderFollower demandOrderFollower)
    {
        return demandOrderFollowerMapper.selectOneDemandOrderFollower(demandOrderFollower);
    }

    /**
     * 新增fo_demand_order_follower
     * 
     * @param demandOrderFollower fo_demand_order_follower
     * @return 结果
     */
    @Override
    public int insertDemandOrderFollower(DemandOrderFollower demandOrderFollower)
    {
        demandOrderFollower.setCreateTime(DateUtils.getNowDate());
        return demandOrderFollowerMapper.insertDemandOrderFollower(demandOrderFollower);
    }

    /**
     * 修改fo_demand_order_follower
     * 
     * @param demandOrderFollower fo_demand_order_follower
     * @return 结果
     */
    @Override
    public int updateDemandOrderFollower(DemandOrderFollower demandOrderFollower)
    {
        demandOrderFollower.setUpdateTime(DateUtils.getNowDate());
        return demandOrderFollowerMapper.updateDemandOrderFollower(demandOrderFollower);
    }

    @Override
    public int updateDemandOrderFollowerCondition(DemandOrderFollower demandOrderFollower, DemandOrderFollower demandOrderFollowerCondition)
    {
                demandOrderFollower.setUpdateTime(DateUtils.getNowDate());
        return demandOrderFollowerMapper.updateDemandOrderFollowerCondition(demandOrderFollower, demandOrderFollowerCondition);
    }

    /**
     * 批量删除fo_demand_order_follower
     * 
     * @param ids 需要删除的fo_demand_order_follower主键
     * @return 结果
     */
    @Override
    public int deleteDemandOrderFollowerByIds(Long[] ids)
    {
        return demandOrderFollowerMapper.deleteDemandOrderFollowerByIds(ids);
    }

    /**
     * 删除fo_demand_order_follower信息
     * 
     * @param id fo_demand_order_follower主键
     * @return 结果
     */
    @Override
    public int deleteDemandOrderFollowerById(Long id)
    {
        return demandOrderFollowerMapper.deleteDemandOrderFollowerById(id);
    }

    /**
     * 条件删除fo_demand_order_follower
     *
     * @param demandOrderFollower fo_demand_order_follower
     * @return 结果
     */
    @Override
    public int deleteDemandOrderFollowerByCondition(DemandOrderFollower demandOrderFollower)
    {
        return demandOrderFollowerMapper.deleteDemandOrderFollowerByCondition(demandOrderFollower);
    }

}
